MAPISendMail failed with "No default email client" when Office 365 is installed.

Hi,

After I installed Office 365, my poor "Send as Attachment" functionality is broken again.

Outlook is already has all the defaults.

When I call MAPISendMail it complains about "No default email client or Outlook could not fulfill your desire...."

But Word 2013 with Office 365 's "Send as Attachment" works without problem.

I tried MFCMAPI, which failed too.

I feel so confused, maybe some true god could tell me where to start with.

July 30th, 2015 11:17pm

I created a empty win32 application, and put my code there, it always failed.

Then I try to put my code in an empty Qt application, then it works.

The code should be not problem, it looks like there is some thing to do with the environment.

Any ideas?

Free Windows Admin Tool Kit Click here and download it now
July 31st, 2015 6:01am

Finally it turns out Office 365's MAPI implementation(MSMAPI32.DLL) depends on "Microsoft Visual C++ 2010 SP1 Redistributable Package".

After I install the vc redist, it works.

The redist SHOULD be installed with Office 365.

Hope this will help other people who run into such issue.

July 31st, 2015 12:26pm

BTW, Office Word works because there are msvcr100.dll and msvcp100.dll under the WINWORD.exe's containing folder.
Free Windows Admin Tool Kit Click here and download it now
July 31st, 2015 12:36pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics